package org.rency.crawler.domain.state;

import org.rency.crawler.domain.vo.BaseDomain;

/**
 * 描述: ${TODO}<br>
 * 最近修改时间:2017/11/20 18:23<br>
 *
 * @author CaiyuRen
 * @version V1.0
 * @since 2017/11/20 18:23
 */
public class FetchStateRuleDomain extends BaseDomain {

  private String         id;

  private String         fsCode;

  /**
   * 抓取状态
   */
  private FetchStatus    fsStatus;

  private String         nextFsCode;

  /**
   * 重试次数
   */
  private int            retryTimes;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getFsCode() {
    return fsCode;
  }

  public void setFsCode(String fsCode) {
    this.fsCode = fsCode;
  }

  public FetchStatus getFsStatus() {
    return fsStatus;
  }

  public void setFsStatus(FetchStatus fsStatus) {
    this.fsStatus = fsStatus;
  }

  public String getNextFsCode() {
    return nextFsCode;
  }

  public void setNextFsCode(String nextFsCode) {
    this.nextFsCode = nextFsCode;
  }

  public int getRetryTimes() {
    return retryTimes;
  }

  public void setRetryTimes(int retryTimes) {
    this.retryTimes = retryTimes;
  }

  public boolean canRetry(){
    return this.retryTimes > 0;
  }
}
